prepare-root: remove ignored MS_MGC_VAL flag
authorTristan Cacqueray <tdecacqu@redhat.com>
Sun, 5 May 2019 03:33:35 +0000 (03:33 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sun, 5 May 2019 20:53:17 +0000 (20:53 +0000)
Since Linux 2.4 this is no longer required and the flag is ignored.

Closes: #1851
Approved by: cgwalters

src/switchroot/ostree-prepare-root.c

index 15d49963b47aa3f595c97e0cf4ea9937a2de365b..3d6e78336943e60858b6abbd313d11946d47143c 100644 (file)
@@ -182,7 +182,7 @@ main(int argc, char *argv[])
     mount_var = true;
 
   /* Link to the deployment's /var */
-  if (mount_var && mount ("../../var", "var", NULL, MS_MGC_VAL|MS_BIND, NULL) < 0)
+  if (mount_var && mount ("../../var", "var", NULL, MS_BIND, NULL) < 0)
     err (EXIT_FAILURE, "failed to bind mount ../../var to var");
 
   char srcpath[PATH_MAX];